package com.baidu.ota.model;

import com.baidu.commonlib.interfaces.ICheckUpdateListener;
import com.baidu.commonlib.interfaces.IDownloadListenerEx;
import com.baidu.commonlib.interfaces.IUpgradeListener;

public interface IOtaModel {
    /**
     * 检查更新
     */
    void checkUpdate(ICheckUpdateListener listener);

    /**
     * 下载
     */
    void download(String pkgName, IDownloadListenerEx listener);

    /**
     * 取消下载
     */
    void cancelDownload(String pkgName);

    /**
     * 升级
     */
    void upgrade(String pkgName, IUpgradeListener listener);
}
